import {NavigationActions} from 'react-navigation';

let _navigator;

const setNaviagtor = (ref) => {
    _navigator = ref;
};

const navigate = (routeName) => {
    _navigator.dispatch(NavigationActions.navigate({routeName}));
};

export default {
    setNaviagtor,
    navigate,
};
